Libraries

  • Linking Libraries in Visual Studio .

    • At no point does he explain how to create a library, only how to use one.

    • In the second half of the video, he explains the process.

    • He downloads a folder with binaries and uses only:

      • GLFW\include

        • For the header files.

      • GLFW\lib-vc2015

        • For the static library and/or dynamic library.

        • He uses only the static library.

    • For the header files:

      • Project Settings -> C/C++ -> General -> Additional Include Directories .

        • $(SolutionDir)Dependencies\GLFW\include

    • For the libraries:

      • Project Settings -> Linker -> General -> Additional Library Directories .

        • $(SolutionDir)Dependencies\GLFW\lib-vc2015

      • Project Settings -> Linker -> Input -> Additional Dependencies .

        • glfw3.lib

  • From what I understand, the Linker options in Project Settings do not appear when creating a static library .lib .